package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.WorkOrderTemplateCategoryRetainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title: 工单分类
 * @date 2020/3/1914:42
 */
@Repository
@Mapper
public interface WorkOrderTemplateCategoryRetainDao {
    List<WorkOrderTemplateCategoryRetainEntity> findEntitys(@Param("param") Map<String, Object> param);
    /**
     * 批量插入实体
     * @param list
     * @return 返回数据的列表
     */
    Integer insertBatch(@Param("list") List<WorkOrderTemplateCategoryRetainEntity> list);


    /**
     * 批量删除
     * @param list 主键id集合
     * @param corpid
     * @author xingxing.xiao
     */
    Integer deleteBatch(@Param("list") List<Long> list, @Param("corpid") String corpid);

    WorkOrderTemplateCategoryRetainEntity getCategoryByRetainAppId(@Param("retainAppId") Long retainAppId, @Param("corpid")String corpid );
}
